// 接口模块
import request from "@/utils/request";

//  请求获取联想建议数据
export const getsearchAdvice = (q) => {
  return request({
    method: "GET",
    url: "/v1_0/suggestion",
    params: {
      q,
    },
  });
};

//  请求获取搜索结果数据
export const getSearchRecord = (params) => {
  return request({
    method: "GET",
    url: "/v1_0/search",
    params,
  });
};
